{if (request()->isAjax() == false)}
<!DOCTYPE html>
<html>
    <head>
        <title>{$title|default=''}</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <script src="//tencent.beecdn.cn/libs/jquery/3.3.1/jquery.min.js"></script>
        <link href="//tencent.beecdn.cn/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
        <script src="//tencent.beecdn.cn/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
        <link href="{$STATIC_PATH}layer_mobile/need/layer.css" rel="stylesheet">
        <link href="{$STATIC_PATH}css/basic.css" rel="stylesheet">
        <script src="{$STATIC_PATH}layer_mobile/layer.js"></script>
        <script src="{$STATIC_PATH}js/basic.js"></script>
    </head>
    <style>
    </style>
    <body>
                <div class="header col-xs-12" style="border-bottom: 0.3px solid;;padding-bottom: 1%; position:relative;margin-top:1%">
                        <div class="pull-left text-left color-grey" onclick="history.back()" style="width: 30%;font-size:1.8rem">
                            <i class="glyphicon glyphicon-chevron-left "></i>
                        </div>
                        <div class="color-grey text-center header-title" style="width: 40%;float: left;font-size:1.6rem">   </div>
                        <div class="pull-right text-right color-grey" style="width: 30%;font-size:1.8rem">
                            {empty name="hide_nav"}
                                <i class="glyphicon glyphicon-th-list p-r-md m-r-lg" onclick="show_nav()"></i>
                                <i class="p-l-md p-r-md glyphicon glyphicon-user" onclick="location.href='{:merge_url('member/navigator');}'"></i>
                            {else /}
                                <i class="p-l-md glyphicon glyphicon-user" onclick="location.href='{:merge_url('member/register');}'">
                                </i>
                         <span style="font-size:1.6rem;text-align: center" class='p-l-xs' onclick="location.href='{:merge_url('member/register');}'">注册</span>
                            {/empty}
                        </div>
                </div>
        <div id="layout_content" class="container" style="width: auto;">
            {/if}
            {__CONTENT__}
            {if (request()->isAjax() == false)}
        </div>
    </body>
    <script>
        function show_nav ()
        {
                    var hide_content_form_div = $('#hide_nav').first();
                    layer.open({
                            content:hide_content_form_div.html(),
                            style: 'position:relative;top:-30px',
                    });
        }
    </script>
            <div class="hide header-nav col-xs-6 col-xs-offset-6"id="hide_nav" style="width: auto;position: fixed;background-color: white;top:3%;">
            <ul class="nav nav-pills nav-stacked">
                     <li role="presentation" class="color-grey"><a href="{:merge_url('plan/plan_list');}">时间规划</a></li>
                     <li role="presentation" class="color-grey"><a href="{:merge_url('half/half_list');}">时间记录</a></li>
            </ul>
            </div>
            <div class="col-xs-12 text-center">
                <h5 >粤ICP备18037007号</h5>
            </div>
</html>
{/if}